package com.webmagic.webmagic.config;

import lombok.Data;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author xbl
 * @Description
 * @date 2018/12/24
 */
@Data
@Component
@ConfigurationProperties(prefix = "spring.datasource")
public class MysqlConfig {
    private String driverClassName;
    private String username;
    private String password;
    private String url;
    private String validationQuery;
    private String connectionProperties;
    private String filters;
    private int initialSize;
    private int idleMaxAge;
    private int minIdle;
    private int maxActive;
    private long maxWait;
    private long timeBetweenEvictionRunsMillis;
    private long minEvictableIdleTimeMillis;
    private Boolean testWhileIdle;
    private Boolean testOnBorrow;
    private Boolean testOnReturn;
    private Boolean poolPreparedStatements;

}
